package com.px.chapter_Dec_1.textt.fileTEst;

import com.px.chapter_Dec_1.textt.GetTTime;

import java.io.*;
import java.util.Scanner;

import static java.lang.System.*;

public class Fileput {
    public static void main(String[] args) {
        try {
            BufferedReader bb=new BufferedReader(new  InputStreamReader(System.in));
            InputStreamReader cc=new InputStreamReader(System.in);
            try {
                int ss=cc.read();
            } catch (IOException e) {
                e.printStackTrace();
            }
            try {
                String df=bb.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }

            PrintStream sx=new PrintStream(System.out);
            PrintStream ss=new PrintStream("D:\\22.txt");
            System.setOut(ss);
            System.out.println("Sdfdsfsdfdsfsdfdsfsdfdsfssdfsdf");
            System.setOut(sx);
            System.out.println("sdfdfdfdfd");
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }
        Scanner dfd=new Scanner(System.in);
        /*
        BufferedReader bb=new BufferedReader(new  InputStreamReader(System.in));
        try {
            int ss=bb.read();
            System.out.println((char) ss);
        } catch (IOException e) {
            e.printStackTrace();

        }*/
            /*    try {
                    InputStreamReader ss=new InputStreamReader(new FileInputStream("D:\\21.txt"),"GBK");
                    OutputStreamWriter sw =new OutputStreamWriter(new FileOutputStream("D:\\22.txt"),"GBK");
                    int len;
                    char[] wigth=new char[1598];

                    while ((len=ss.read(wigth))!=-1){
                        sw.write(wigth,0,len);
                        System.out.print((char)len);
                    }
                    ss.close();sw.close();
*/
                /*
                    FileReader fr=new FileReader("D:\\21.txt");
                    FileWriter fw=new FileWriter("D:\\23.txt");
                   // char[] aa=new char[5];
                    int a;
                    while ((a=fr.read())!=-1){
                        fw.write(a);
                        System.out.println((char) a);
                    }
                    fr.close();fw.close();*/
  /*              } catch (IOException e) {
                    e.printStackTrace();
                }*/
            }
        }

        /*try {
                FileInputStream fis=new FileInputStream("D:\\21.rar");
                FileOutputStream jos=new FileOutputStream("D:\\22.rar");
                BufferedInputStream bi=new BufferedInputStream(fis);
            BufferedOutputStream bo=new BufferedOutputStream(jos);
            byte [] nn=new byte[8190];
            int a;
            while ((a=bi.read(nn))!=-1){
                bo.write(nn,0,a);
            }
            fis.close();jos.close();
            double b=System.currentTimeMillis();
            System.out.println((b-aa)/1000/60);
        } catch (IOException e) {
            e.printStackTrace();
        }*/



